#ifndef QMYSLIDER_H
#define QMYSLIDER_H

#include "../../lib/shared/qobjecthost.h"

#include <QSlider>

#include <QDial>


class QSliderHost: public QObjectHost
{
    Q_OBJECT
public:
    QSliderHost(QWidget* wid);
public slots:
    int     value();
signals:
    void    setValue(int);
};

class QMySlider: public QSlider
{
    Q_OBJECT
public:
    QMySlider(QWidget *parent=0);
public slots:
    void    updateProperty(const QString & name);
    void    updatePropertyAttribute();
    void    valueChanged_signal(int value);
    void    initProperty();
signals:
    void    zValueChanged();
protected:
    QObjectHost   *m_host;
};

class QMyDial: public QDial
{
    Q_OBJECT
public:
    QMyDial(QWidget *parent=0);
public slots:
    void    updateProperty(const QString & name);
    void    updatePropertyAttribute();
    void    valueChanged_signal(int value);
    void    initProperty();
signals:
    void    zValueChanged();
protected:
    QObjectHost   *m_host;
};

#endif // QMYSLIDER_H
